import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: "Dashboard",
      component: require('@/views/dashBoard/index').default,
    },
    {
      path: '/all',
      name: 'All',
      component: require('@/views/media/all').default,
    },
    {
      path: '/spider',
      name: 'Spider',
      component: require('@/views/media/spider').default,
    },
    {
      path: '/ai',
      name: 'Ai',
      component: require('@/views/media/ai').default,
    },
    {
      path: '/media',
      name: 'Media',
      component: require('@/views/media/pub.vue').default,
    },
    {
      path: '/dict',
      name: 'Dict',
      component: require('@/views/setting/index').default,
    },
    {
      path: '*',
      redirect: '/',
    },
  ],
})
